-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add keyd keyboard remapping for sysrq shortcut on Mac mode keyboards #1343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Add keyd keyboard remapping for sysrq shortcut on Mac mode keyboards #1343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for the keyd
keyboard remapping daemon to fix print screen functionality on Mac-style keyboards (like the Keychron K3) by mapping the Mac-specific leftmeta+leftshift+4
key combination to the sysrq
key.
- Introduces a hardware configuration script to install and configure keyd
- Adds a migration script for automatic setup during system migrations
- Uses a universal configuration that works with any keyboard without device-specific IDs
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
migrations/1756583646.sh | Migration script that sources the keyd hardware configuration for automatic setup |
install/config/hardware/keyd.sh | Hardware configuration script that installs keyd, creates configuration file, and enables the service |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
keyd is powerful but to achieve what you want i think its more straight forward to just add this to ~/.config/hypr/bindings.conf
Although I appreciate your post as I was trying to find a way to enable sticky shift key keyd + the following config did the trick for me
|
Hi @doctorguile, I recently changed keyboards to the flow84 and tried your proposed method and it doesn't work. In the new commit 75cdeff I added |
If you're on the Flow84, you just need to hit FN + N to be in Windows mode. I'm almost certain that this is possible with all the Keychrons too. |
Yeah that works too but the super key moves from the command/alt to option/windows button which feels less natural for me |
This PR adds support for the
keyd
keyboard remapping daemon to fix print screen functionality on Mac mode keyboards by mappingleftmeta+leftshift+4
to thesysrq
key.You can still use
left super + left shift + 4
to move a window to the 4th workspace.Changes Made
New Files:
keyd.sh - Hardware configuration script that:
keyd
package from AUR/etc/keyd/default.conf
with keyboard mappings1756583646.sh - Migration script that sources the hardware config for automatic setup
Why This Change?
leftmeta+leftshift+4
at the firmware level to simulate a print screen for mac instead of the button being mapped to a true print screen.default.conf
without device-specific IDs, so it works with any keyboard.